package com.leyou.common.pojo;

import lombok.Data;

import java.util.List;

/**
 *  分页类对象封装
 *
 * create by Rose on 2020/1/9
 */
@Data
public class PageResult<T> {

    private Long total ; // 总条数
    private Long tatalPage ; // 总页数
    private List<T> items ; // 当前页数据

    public PageResult() {
    }

    public PageResult(Long total, Long tatalPage) {
        this.total = total;
        this.tatalPage = tatalPage;
    }

    public PageResult(Long total, Long tatalPage, List<T> items) {
        this.total = total;
        this.tatalPage = tatalPage;
        this.items = items;
    }

    public PageResult(Long total, List<T> items) {
        this.total = total;
        this.items = items;
    }


}
